package com.zyt.springboot.teach_factoryProxy.abstractFactory.aa;

import com.zyt.springboot.teach_factoryProxy.abstractFactory.Computer;
import com.zyt.springboot.teach_factoryProxy.abstractFactory.MiComputer;
import com.zyt.springboot.teach_factoryProxy.simpleFactory.Phone;
import com.zyt.springboot.teach_factoryProxy.simpleFactory.XiaoMiPhone;

/*
 * @params: 小米工厂
 */
public class MiFactory implements AbstractFactory{
    @Override
    public Phone makePhone() {
        return new XiaoMiPhone();
    }

    @Override
    public Computer makeComputer() {
        return new MiComputer();
    }
}
